import {
	get,
	post
} from '@/utils/request.js'

/**
 * 红包成本
 */
export const getTotalCostApi = () => {
	return get('/statistics/redPacket/getTotalCost')
}

/**
 * 红包明细列表
 */
export const redPacketListApi = (data) => {
	return get('/statistics/redPacket/page', data)
}

/**
 * 红包领取列表
 */
export const redPacketReceiveListApi = (data) => {
	return get('/activeRedPacket/pageReceive', data)
}

/**
 * 领取红包
 */
export const receivePedPacketApi = (data) => {
	return post('/activeRedPacket/receive', data)
}